﻿using System;
using System.ComponentModel.Composition;

namespace NDBGen.Tests
{
    public delegate void ParseTest();

    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
    public sealed class ParseTestFor : ExportAttribute
    {
        public ParseTestFor(params Type[] pluginTypes)
            : base(typeof(ParseTest))
        {
            this.PluginTypes = pluginTypes;
        }

        public Type[] PluginTypes { get; set; }
    }

    public interface ITestMetadata
    {
        Type[] PluginTypes { get; }
    }
}